<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
<head>
</head>
<body>
	<c:set var="sum" value="0"></c:set>
	<c:forEach items="${shops }" var="s" varStatus="status">
		<tr id="shop${s.sid}">
			<th scope="row"><label class="checked-label"><input
					type="checkbox" id="checkbox${s.sid }"
					onclick="click1(this.checked,${s.sid})"><i></i>
					<div class="img">
						<img src="${s.clothes.cimgurl }" alt="" class="cover">
					</div> </label></th>
			<td>
				<div class="name ep3"><a  href="ToItemShowServlet?temp=one&ccid=${s.clothes.ccid}">${s.clothes.cname }</a></div>
				<div class="type c9">颜色分类：${s.clothes.ccolor}
					尺码：${s.clothes.csize }</div>
			</td>
			<td>¥${s.clothes.cprice }</td>
			<td>
				<div class="cart-num__box">
					<input type="button" class="sub" value="-"
						onclick="sum(this.value,${s.clothes.cprice},${s.sid})"> <input
						type="text" id="shopnum${s.sid}" class="val" value="${s.snum}"
						maxlength="2" onblur="click2(${s.sid},this.value)"> <input
						type="button" class="add" value="+"
						onclick="sum(this.value,${s.clothes.cprice},${s.sid})">
				</div>
			</td>
			<td>¥<span class="prices_span" id="prices${s.sid}">${s.clothes.cprice*s.snum}</span></td>
			<td><div class="divdeletea">
					<a href="javascript:void(0)" onclick="deleteshop(true,${ s.sid})">删除</a>
				</div></td>
		</tr>
	</c:forEach>
</body>
</html>
